import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import vuetify from './plugins/vuetify';
import message from './components/Message/index'
import filters from './config/filter'
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
import dayjs from 'dayjs'
import {directive as onClickaway} from 'vue-clickaway'


// 工具函数调用
// Vue.prototype.$tip = Vtip.tip
Vue.prototype.dayjs = dayjs;


Vue.config.productionTip = false
Vue.prototype.$message = message
Vue.use(filters);
Vue.use(Viewer);

Vue.directive('on-clickaway', onClickaway)


new Vue({
  router,
  store,
  vuetify,
  render: h => h(App)
}).$mount('#app')
